Release 10.1A: OpenEdge Development:
Progress 4GL Reference
MODULO operator
Determines the remainder after division.
Syntax
expressionAn integer expression.
baseA positive integer expression that is the modulo base. For example, angles measured in degrees use a base of 360 for modulo arithmetic. 372 MODULO 360 is 12.
ExampleThis procedure determines the number of trucks required to ship a given quantity of material, and how much material is left over from a less than full truck load:
Note
The
expressionmust be greater than 0 for MODULO to return a correct value.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |